package com.green.voluntaryfiling.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: Green
 * @Date: 2022/03/14/23:53
 * @Description:
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResultObj {

    public static final ResultObj USER_STORE_SUCCESS = new ResultObj(200,"success");
    public static final ResultObj USER_STORE_ERROR = new ResultObj(400,"存储失败");
    public static final ResultObj USER_STORE_UPDATE = new ResultObj(201,"更新内容成功");

    public static final ResultObj UNIVERSITY_INFO_ERROR = new ResultObj(401,"学校信息查询失败");
    public static final Integer UNIVERSITY_INFO_SUCCESS_CODE = 202;

    public static final Integer USER_ISEXIST_SUCCESS = 203;
    public static final String USER_ISEXIST_SUCCESS_MSG = "当前用户已存在数据库中";
    public static final ResultObj USER_ISEXIST_FAIL = new ResultObj(402,"当前用户未存在数据库中");
    public static final ResultObj USER_ISEXIST_ERROR = new ResultObj(403,"查询失败");

    public static final Integer UNIVERSITY_MATCH_SUCCESS = 204 ;
    public static final ResultObj UNIVERSITY_MATCH_FAIL = new ResultObj(404,"数据库中未匹配到此结果");
    public static final ResultObj UNIVERSITY_MATCH_ERROR = new ResultObj(405,"匹配失败");
    public static final Integer UNIVERSITY_MATCH_PAGE_ERROR = 410;
    public static final String UNIVERSITY_MATCH_PAGE_ERROR_MSG = "page页面重复";

    public static final Integer UNIVERSITY_MATCH_SCORE_SUCCESS = 205 ;
    public static final ResultObj UNIVERSITY_SCORE_MATCH_FAIL = new ResultObj(406,"输入的高考分数错误，请输入200-750区间的分数");
    public static final ResultObj UNIVERSITY_SCORE_MATCH_ERROR = new ResultObj(407,"学生分数匹配失败");

    public static final Integer UNIVERSITY_MATCH_RANKING_SUCCESS = 206 ;
    public static final ResultObj UNIVERSITY_RANKING_MATCH_FAIL = new ResultObj(408,"输入的高考排位错误，请输入分数对应的正确排位");
    public static final ResultObj UNIVERSITY_RANKING_MATCH_ERROR = new ResultObj(409,"学生排位匹配失败");

    public static final Integer UNIVERSITY_DETAIL_SUCCESS_CODE = 209 ;
    public static final String UNIVERSITY_DETAIL_SUCCESS_MSG = "学校详情success";
    public static final Integer UNIVERSITY_MAJOR_DETAIL_SUCCESS_CODE = 210 ;
    public static final String UNIVERSITY_MAJOR_DETAIL_SUCCESS_MSG = "专业获取success";
    public static final ResultObj UNIVERSITY_DETAIL_FAIL = new ResultObj(411,"学校详细信息获取信息失败");
    public static final ResultObj UNIVERSITY_DETAIL_ERROR = new ResultObj(413,"学校详细信息ERROR");
    public static final ResultObj UNIVERSITY_MAJOR_DETAIL_FAIL = new ResultObj(412,"学校专业信息获取信息失败");
    public static final ResultObj UNIVERSITY_MAJOR_DETAIL_ERROR = new ResultObj(414,"学校专业信息ERROR");

    public static final ResultObj VOLUNTRAY_FILL_SUCCESS = new ResultObj(211,"填报success");
    public static final ResultObj VOLUNTRAY_FILL_UPDATE_SUCCESS = new ResultObj(212,"填报update success");
    public static final ResultObj VOLUNTRAY_FILL_FAIL = new ResultObj(415,"学校专业信息获取信息失败");
    public static final ResultObj VOLUNTRAY_FILL_ERROR = new ResultObj(416,"学校专业信息ERROR");

    public static final Integer VOLUNTARY_QUERY_SUCCESS_CODE = 213 ;
    public static final String VOLUNTARY_QUERY_SUCCESS_MSG = "获取INFOsuccess";
    public static final ResultObj VOLUNTARY_QUERY_FAIL = new ResultObj(417,"获取志愿列表信息失败");
    public static final ResultObj VOLUNTARY_QUERY_ERROR = new ResultObj(418,"获取志愿列表ERROR");

    public static final ResultObj VOLUNTARY_DELETE_SUCCESS = new ResultObj(214,"删除当前志愿学校成功");
    public static final ResultObj VOLUNTARY_DELETE_ERROR = new ResultObj(418,"删除志愿ERROR");
    public static final ResultObj VOLUNTARY_DELETE_FAIL = new ResultObj(417,"删除志愿失败");

    private Integer code = 200 ;
    private String msg = "";
    private Object obj = "";

    public ResultObj(Integer code, String msg){
        this.code = code ;
        this.msg = msg;
    }

    public ResultObj(Object obj){
        this.obj = obj;
    }
}//end class ResultObj
